import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm'

@Entity()
export class Todo {

  @PrimaryGeneratedColumn()
  id: number

  @Column()
  content: string

  @Column()
  createdAt: number

  @Column()
  updatedAt: number

  @Column()
  status: number
}

export const TODO_STATUS_INT = {
  CREATED: 0,
  COMPLETED: 1,
}

export const TODO_STATUS_ENUM = {
  0: 'CREATED',
  1: 'COMPLETED',
}
